package com.grandtech.insurance.config;

import com.grandtech.insurance.common.db.mybites.intercepts.MbPreIntercept;
import com.grandtech.insurance.common.db.mybites.intercepts.MbResIntercept;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MyBatisConfig {



    @Bean
    public MbPreIntercept mbPreIntercept() {
        MbPreIntercept mbPreIntercept = new MbPreIntercept();
        return mbPreIntercept;
    }

    /*@Bean
    public MbSqlIntercept mbSqlIntercept() {
        MbSqlIntercept mbSqlIntercept = new MbSqlIntercept();
        return mbSqlIntercept;
    }*/

    @Bean
    public MbResIntercept mbResIntercept() {
        MbResIntercept mbResIntercept = new MbResIntercept();
        return mbResIntercept;
    }



   /* @Bean
    public MbPageIntercept mbPageIntercept() {
        MbPageIntercept mbPageIntercept = new MbPageIntercept();
        mbPageIntercept.setDialect("mysql");
        mbPageIntercept.setPageSqlId(".*Page$");
        return mbPageIntercept;
    }*/



}
